jail: fix and simplify userns uid/gid maps from OCI
authorDaniel Golle <[email protected]>
Wed, 25 Nov 2020 23:25:58 +0000 (23:25 +0000)
committerDaniel Golle <[email protected]>
Fri, 27 Nov 2020 01:06:09 +0000 (01:06 +0000)
commit5abee8f6909b4e4183e65cd730d3107d640a0306
tree9b6148a2bbb0191ec5db1433d66d095a6725bd62
parent7e0145375201bbd9b49d65ed2ba7d736156ce7c5
jail: fix and simplify userns uid/gid maps from OCI

Pre-calculate allocation length more simple and make sure maps are
properly generated.

Signed-off-by: Daniel Golle <[email protected]>
jail/jail.c